<{include file="wiget/header.tpl"}>
<{include file="wiget/navbar.tpl"}>
<link href="/static/timeselect/css/jquery-ui-1.9.1.custom.min.css" rel="stylesheet" type="text/css" />
<link href="/static/timeselect/css/jquery-ui-timepicker-addon.css" type="text/css" />

<script src="/static/jquery.min.js"></script>

<script charset="utf-8" src="/static/kd/kindeditor.js"></script>
<script charset="utf-8" src="/static/kd/lang/zh_CN.js"></script>

<script type="text/javascript" src="/static/timeselect/js/jquery-ui.min.js"></script>
<script type="text/javascript" src="/static/timeselect/js/jquery-ui-timepicker-addon.js"></script>
<script type="text/javascript" src="/static/timeselect/js/jquery-ui-sliderAccess.js"></script>
<script type="text/javascript" src="/static/timeselect/js/datetime.custom.js"></script>
<script>
        var editor,editer_en;
        KindEditor.ready(function(K) {
                editor = K.create('#content',{items : ['bold', 'italic', 'underline', 'strikethrough', 'removeformat', '|', 'justifyleft', 'justifycenter', 'formatblock', 'insertorderedlist', 'insertunorderedlist', '|','subscript','superscript', 'about','clearhtml', 'code', '|','link', 'unlink', 'emoticons', 'shcode', 'image', 'table', 'quote', '|', 'source', 'fullscreen']});
        });
		//var json = <{$json}>;
		//console.log(json);
		//alert(json['php基础']['php_1']);
</script>
<div id='left'>
</div>
<form class="form-horizontal" id="form" accept-charset="utf-8" autocomplete="on" method="post" action="/edit/course/">
  <!--
  <div class="control-group">
    <label class="control-label">大类别</label>
    <div class="controls">
      <select name="item_name" class="span2" id="item_name">
		<{if $item}>
		<option value="<{$item}>"><{$item}></option>
		<{/if}>
		<option value="other">无分类</option>
		<{foreach $items as $item}>
		<option value="<{$item}>"><{$item}></option>
		<{/foreach}>
	  </select>
    </div>
  </div>
  -->
  <div class="control-group">
    <label class="control-label">树形条目</label>
    <div class="controls">
      <select name="node_path" class="span2">
		<{foreach $tree as $k=>$v}>
		<option value="<{$k}>"><{$v}></option>
		<{/foreach}>
	  </select>
    </div>
  </div>
  <div class="control-group">
    <label class="control-label">标题</label>
    <div class="controls">
      <input type="text" name="func_note" id="func_note" maxlength="30"  style="width:400px;" placeholder="函数的功能, 用途等等"/>
    </div>
  </div>
   <div class="control-group">
    <label class="control-label">文章内容</label>
    <div class="controls">
      <textarea type="textarea" rows="3" maxlength="10000" id="content" name="content" style="width:600px;height:250px;"></textarea>
    </div>
  </div>
  
 
  <div class="control-group">
    <label class="control-label">预定发布时间</label>
    <div class="controls">
      <input type="text" class="datetime_timepicker" name="time" id="time" maxlength="30" placeholder="默认立刻发布" style="width:250px;" />
      
    </div>
  </div>
  <div class="control-group">
    <div class="controls">
	  <a href="<{$smarty.const.URL}>" class="btn btn-large">返回首页</a>
      <button type="submit" id="submit" name="op" value="course_edit" class="btn btn-large btn-primary">提交</button>
    </div>
  </div>
</form>
<script type="text/javascript">

</script>

<{include file="wiget/footer.tpl"}>